package cn.zyg.ymcc.dto;

import cn.zyg.ymcc.util.AssertUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PhoneRegisterDto {
    @Pattern(regexp = AssertUtil.PHONE_FORMAT , message = "手机格式错误！")
    private String mobile; //'18244444444',
    @Size(min = 6, max = 12, message = "密码在 6 - 12 之间")
    private String password; //'123456',
    @NotNull
    private String smsCode; //'',
    @NotNull
    private Integer regChannel;  //注册的渠道
}
